import React, { Component } from 'react';
/* 
  属性代理
  1.添加元素
*/
class App extends Component {
  render() {
    return (
      <div>
        <h1>App 组件</h1>
      </div>
    );
  }
}

function withBackGroundColor(Cmp){
    return class extends Component{
      render(){
        return <div style={{backgroundColor:"red"}}>
          <Cmp></Cmp>
        </div>
      }
    }
}

export default withBackGroundColor(App);
